package com.sofwin.service.impl;

import com.sofwin.mapper.SysLoginLogMapper;
import com.sofwin.pojo.SysLoginLog;
import com.sofwin.service.LoginLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @packageName: com.sofwin.service.impl
 * @author: andyliu
 * @date: 2022/5/9 15:08
 * @email 115176513@qq.com
 * @description: TODO
 */
@Service
public class LoginLogServiceImpl implements LoginLogService {
    @Autowired
    private SysLoginLogMapper mapper;

    @Override
    public boolean saveLoginLog(SysLoginLog log) {
        return mapper.insertSelective(log)==1?true:false;
    }
}
